$(function () {
    new Vue({
        el: '#right',
        data: {
            params: {}
        },
        mounted: function () {
            this.getInfo();
        },
        methods: {
            /** 获取信息 **/
            getInfo: function() {
                var self = this;
                $.ajax({
                    url: rootPath + '/start/get-app-run',
                    type: 'get',
                    dataType: 'json',
                    success: function(result) {
                        if(result.status) {
                            self.params = result.data;
                        } else {
                            header.Popup('alert',result.error,'');
                        }
                    }
                });
            },
            /** 图片地址 **/
            imgUrl: function(url) {
                return typeof url == "undefined" ? "" : rootPath+url;
            }
        }
    });
});